import http from '@/utils/fetch'

/**
 * 订单管理
 */
// 订单列表
export function orderList(params) {
  return http.post('/Admin/Order/orderList', params)
}

export function sendSigning(params) {
  return http.post('/Admin/Yfb/sendSigning', params)
}

export function confirmSigning(params) {
  return http.post('/Admin/Yfb/confirmSigning', params)
}

export function paySigning(params) {
  return http.post('/Admin/Yfb/paySigning', params)
}

export function finishPay(leaseId) {
  return http.get('/Admin/QrPay/finishPay', { leaseId })
}

// 退款订单列表
export function orderRefundList(params) {
  return http.post('/Admin/Order/orderRefundList', params)
}
// 查看租期
export function getLease(orderId) {
  return http.post('/Admin/Order/getLease', { orderId })
}
// 转单
export function orderTransfer(params) {
  return http.post('/Admin/Order/orderTransfer',params)
}
// 修改租赁方式
export function replacePackage(params) {
  return http.post('/Admin/Order/replacePackage',params)
}
// 修改租赁方式
export function memberCount(params) {
  return http.post('/Admin/Order/memberCount',params)
}
// 修改分期
export function replaceFenQi(params) {
  return http.post('/Admin/Order/replaceFenQi',params)
}
// 设置修改收货地址
export function setAddress(params) {
  return http.post('/Admin/Order/setAddress', params, true)
}
// 获取所有区域
export function getRegion() {
  return http.post('/Admin/Order/getRegion')
}
// 添加设备编号
export function setDeviceNumber(params) {
  return http.post('/Admin/Order/setDeviceNumber', params, true)
}
// 添加客服备注
export function setOrderRemark(params) {
  return http.post('/Admin/Order/setOrderRemark', params, true)
}
// 获取客服备注记录
export function getOrderRemark(params) {
  return http.post('/Admin/Order/getOrderRemark', params)
}
// 查看流水记录
export function getLeaseFlow(orderNo) {
  return http.post('/Admin/Order/getLeaseFlow', { orderNo })
}
// 获取物流公司列表
export function getLogisticAll() {
  return http.post('/Admin/Order/getLogisticAll')
}
// 发货
export function deliverGoods(params) {
  return http.post('/Admin/Order/deliverGoods', params, true)
}
// 确认收货
export function confirmGoods(params) {
  return http.post('/Admin/Order/confirmGoods', params, true)
}
// 获取账单详情
export function getLeaseInfo(orderId) {
  return http.post('/Admin/Order/getLeaseInfo', { orderId })
}
// 获取物流信息
export function getLogisticInfo(params) {
  return http.post('/Admin/Order/getLogisticInfo', params)
}
// 补充发货确认收货凭证
export function setOrderVoucher(params) {
  return http.post('/Admin/Order/setOrderVoucher', params, true)
}
// 获取订单状态列表
export function getOrderStatus() {
  return http.post('/Admin/Order/getOrderStatus')
}
// 获取商品类型
export function getShopType() {
  return http.post('/Admin/Order/getShopType')
}
// 订单列表导出
export function orderListExport(params) {
  return http.export('/Admin/Order/orderListExport', params, '订单列表')
}
// 推广员订单列表导出
export function promoterOrderExport(params) {
  return http.export('/Admin/Order/promoterOrderExport', params, '推广订单列表')
}
// 花呗订单列表
export function orderHuaBeiList(params) {
  return http.post('/Admin/Order/orderHuaBeiList', params)
}
// 花呗订单列表-导出
export function orderHuaBeiExport(params) {
  return http.export('/Admin/Order/orderHuaBeiExport', params, '花呗订单列表')
}
// 买断订单列表
export function orderBuyOutList(params) {
  return http.post('/Admin/Order/orderBuyOutList', params)
}
// 买断订单列表-导出
export function orderBuyOutListExport(params) {
  return http.export(
    '/Admin/Order/orderBuyOutListExport',
    params,
    '买断订单列表'
  )
}
// 签约待付款订单列表
export function orderSignedList(params) {
  return http.post('/Admin/Order/orderSignedList', params)
}
// 签约待支付订单列表-导出
export function orderSignedListExport(params) {
  return http.export(
    '/Admin/Order/orderSignedListExport',
    params,
    '签约待支付订单列表'
  )
}
// 交易完成
export function orderFinish(orderId) {
  return http.post('/Admin/Order/orderFinish', { orderId }, true)
}
// 订单同意归还
export function orderReturnAgree(orderId) {
  return http.post('/Admin/Order/orderReturnAgree', { orderId }, true)
}
// 订单归还审核拒绝
export function orderReturnRefuse(params) {
  return http.post('/Admin/Order/orderReturnRefuse', params, true)
}
// 订单确认归还
export function orderComfirmReturn(orderId) {
  return http.post('/Admin/Order/orderComfirmReturn', { orderId }, true)
}
// 订单归还完成
export function orderReturnFinish(orderId) {
  return http.post('/Admin/Order/orderReturnFinish', { orderId }, true)
}
// 订单关闭
export function orderClose(orderId) {
  return http.post('/Admin/Order/orderClose', { orderId }, true)
}

// 续租订单列表
export function orderRenewalList(params) {
  return http.post('/Admin/Order/orderRenewalList', params)
}
// 修改订单物流信息
export function editOrderExpress(params) {
  return http.post('/Admin/Order/editOrderExpress', params, true)
}
// 风控列表
export function orderSuccessList(params) {
  return http.post('/Admin/Order/orderSuccessList', params)
}
// 下载签收回单
export function getSignReceipt(params) {
  return http.get('/Admin/Order/getSignReceipt', params)
}

// 修改租金
export function changeRent(params) {
  return http.post('/Admin/Order/changeRent', params)
}

// 修改用户电话
export function changeMemberMobile(params) {
  return http.post('/Admin/Order/changeMemberMobile', params)
}

// 修改套餐
export function changeSetmeal(params) {
  return http.post('/Admin/Order/changeSetmeal', params)
}
// 重签合同
export function handCreateContract(params) {
  return http.post('/Admin/Order/handCreateContract', params)
}

//发送风控备注
export function riskUpdate(params) {
  return http.post('/Admin/Order/riskUpdate', params)
}

// 编辑获取商品套餐列表
export function getGoodsSetmealList(id) {
  return http.get("/Admin/Goods/getGoodsSetmealList", { goods_id: id });
}
// 修改用户身份证
export function changeMemberNoCard(params) {
  return http.post('/Admin/Order/changeMemberNoCard', params)
}

// 修改推广员id
export function changePromoter(params) {
  return http.post('/Admin/Order/changePromoter', params)
}
//修改客户信息备注
export function customerInformations(params) {
  return http.post("/Admin/Order/customerInformations",params);
}
//获取客户信息备注
export function customerInformation(params) {
  return http.post("/Admin/Order/customerInformation",params);
}
//发货量
export function shipMent(params) {
  return http.post("/Admin/Order/shipMent",params);
}
//有效订单量
export function validOrderCount(params) {
  return http.post("/Admin/Order/validOrderCount",params);
}
//商户的有效订单量
export function merChant(params) {
  return http.post("/Admin/Order/merChant",params);
}
//有效总单数
export function yxCount(params) {
  return http.post("/Admin/Order/yxCount",params);
}
//只选择风控备注将订单状态改为待发货
export function riskFknote(params) {
  return http.post("/Admin/Order/riskFknote",params);
}
//手机黑名单
export function rollMobile(params) {
  return http.post("/Admin/Order/rollMobile",params);
}
//在客户信息里查询风控信息
export function selectFkMessage(params) {
  return http.post("/Admin/Order/selectFkMessage",params);
}

//退款
export function rentRefund(params) {
  return http.post("/Admin/Order/rentRefund",params);
}
export function merchantCode(params) {
  return http.post("/Admin/Order/merchantCode",params);
}
export function memberCode(params) {
  return http.post("/Admin/Order/memberCode",params);
}
//三要素逾期次数
export function overdueCustomer(params) {
  return http.post("/Admin/Order/overdueCustomer",params);
}
//律师函
export function lawyerLetter(params) {
  return http.post("/Admin/Order/lawyerLetter",params);
}
export function alterPdf(params) {
  return http.post("/Admin/Order/alterPdf",params);
}
export function selectPromoter() {
  return http.post("/Admin/Order/selectPromoter");
}
export function goodsSure(params) {
  return http.post("/Admin/Order/goodsSure",params);
}

